    <include file="header" />
	<include file="header_nav" />
	<div class="row main-container">
		<include file="left_nav" />
		<div class="col-md-10 right-container">
			<div class="right-main-container">
				<div class="content-body" style="padding:20px;">
					<div class="post">
						<form action="__SELF__" method="POST" enctype="multipart/form-data">
						<input type="hidden" id="id" name="id" value="{$list.id}" />
						<!---kind编辑器-->
						<div class="form-group">
							<label for="title" style="font-size:35px;">活动标题</label>
							<input id="title" name="title"  style="width:100%;height:45px;line-height:38px;font-size:28px;display:block;" placeholder="在这里输入标题" value="{$list.title}"/>
						</div>
						<div class="form-group">
						    <label for="url" style="font-size:35px;">活动URL地址</label>
							<input id="url" name="url"  style="width:100%;height:45px;line-height:38px;font-size:28px;display:block;" placeholder="在这里输入活动网址" value="{$list.title}" {$list.disabled}/>
						</div>																													<div class="form-group">
						    <label for="title" style="font-size:35px;">封面图</label><span>活动的封面图，用于在首页显示</span>
							<input  type='file' id="title" name="title"  style="width:100%;height:45px;line-height:38px;font-size:28px;display:block;" placeholder="在这里输入标题" value="{$list.title}" {$list.disabled}/>
						</div>	
					</div>
					
					<input type="submit" id="btn-submit" class="btn btn-info" style="height:52px;width:298px;font-size:22px;" value="立即保存" />
				</div>


		    </div>
			<script type="text/javascript">
				
				$('#btn-submit').click(function () {
					var btn = $(this);
					var title = $('#title').val(); 
					var id = $('#id').val();
					var html = editor.html();
					html = $.trim(html);
					if(html == ''){ 
						remind('请填写内容','系统提示');
					}
					var article_id = "{$list.article_id}";
					$.post('__SELF__',{title:title,content:html,id:id},function(data){
						if(data.status == 1){
							remind(data.info,'系统提示');
						}else{
							remind(data.info,'系统提示');
							//$('#btn-submit').html('自动保存失败');//如果是input或者textarea 使用$('#fat-btn').val();
						}
						
					});     
				});

			</script>
			<include file="footer" />